/**
* Copyright (c) 2016-2100 yunclouds
*/
package com.yunqian.redot.domain;

import com.yunqian.model.BaseModel;
import com.yunqian.redot.constant.Tables;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author czy
 * 2018-10-25 18:40:35
 */
@Data
@Entity
@Table(name = Tables.CODE)
@EqualsAndHashCode(callSuper = false)
public class Code extends BaseModel<Long>{
    
    /**过期时间*/
    @Column(name = "expired_time")
    private Date expiredTime;
    /**手机号*/
    @Column(name = "phone")
    private String phone;
    /**验证码*/
    @Column(name = "code")
    private String code;

    public Code() {
    }

    public Code(Date expiredTime, String phone, String code) {
        this.expiredTime = expiredTime;
        this.phone = phone;
        this.code = code;
    }
}
